﻿<?php
	function SendMail($title, $Message){
		$to      = "A-TFS-ENG-PI-TE@hd.tongfangpc.com"; //sendmail测试邮件发送到的地址
		$headers = "From: TE_KS<thief9@126.com>\r\n";  //sendmail.ini配置文件中用作服务的邮箱
		$subject = "${title}"; 
		$message = "${Message}"; 

		if (mail($to, $subject, $message, $headers)) {  
			echo "success!";
		} else {  
			echo "fail...";
		}
	}
?>